const { Schema, model } = require('mongoose');

const insuranceSchema = new Schema({
    name: String,
    price: Number,
    payment: Number,
    duration: Number,
    //关联保险险种
    insuranceTypeId:{
        type: Schema.Types.ObjectId,
        ref: 'InsuranceType'
    }
})
// 222222
const Insurances = model("Insurances", insuranceSchema, "insurances")

module.exports.Insurances = Insurances